﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using emp.Utility;


public partial class crm_individuals_Findings : System.Web.UI.Page
{
    IList list = new ArrayList();
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            list.Add("136");
            list.Add("153");
            list.Add("156");
            list.Add("157");
            list.Add("178");
            list.Add("190");
            DataTable dt = new emp.BLL.Individuals().getInoByCacuid(list);
            this.datalist.DataSource = dt;
            this.datalist.DataBind();
           
        }
    }
    protected void datalist_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        list.Add("136");
        list.Add("153");
        list.Add("156");
        list.Add("157");
        list.Add("178");
        list.Add("190");
        datalist.PageIndex = PageUtil.getGviewNewPage(datalist, e.NewPageIndex);
        //this.pageNum.Value = datalist.PageIndex.ToString();
        DataTable dt = new emp.BLL.Individuals().getInoByCacuid(list);

        this.datalist.DataSource = dt;
        this.datalist.DataBind();

        PageUtil.setPageCount(datalist, dt.Rows.Count);
    }
}
